package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Dish;
import com.itheima.dto.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavors(DishDto dishDto);

    Page<DishDto> findPage(Integer page, Integer pageSize, String name);

    DishDto getByIdWithFlavors(Long id);

    void updateWithFlavors(DishDto dishDto);

    void deleteByIds(List<Long> ids);

    void updateDish(Integer status, List<Long> ids);
}
